-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Add archiving metrics code with timer #23902
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
d089e53 to
9e837dc
Compare
887b7ba to
f08ed6e
Compare
|
If you don't want this PR to be closed automatically in 28 days then you need to assign the label 'Do not close'. |
|
@mneudert I've addressed all the feedback now. I've also added support for measuring 'report' archive timing. |
bd748f3 to
ea1993b
Compare
0bd0623 to
f8cb810
Compare
* Add clean up task for archive metrics * Add deleted-site purge for archiving metrics * Remove not needed setup/teardown * Add strict types * Update UI screenshot
* Integrate archiveReports with ArchiveMetrics timer * Create event and hook timer into it * Add better typing * Make sure plugin is loaded for integration test * Skip metrics for single-report archiving * Add test-only timer reset helper * Simplify archive loader test GET handling * Add nullable type for instance * cs fix * Add strict types * Allow reports to have metrics recorded
06180da to
a34bf5e
Compare
mneudert
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also added another timer test for a full cascade of year down to day (with two different weeks), just for a bit more details on how the exclusive time is calculated in those rare cases.
Description
Adds a simple timing class for archiving context, recording results in this format:
Follow up will be integrating with the archiving process
and then a cleanup scheduled task to remove old data.
Checklist
Review